<html><head>
        <link href="<?php echo base_url('assets/css/formpenduduk.css'); ?>" rel="stylesheet" type="text/css">
        <link href="<?php echo base_url('assets/js/jquery-ui.css'); ?>" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.9.1.js'); ?>"></script>
        <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui.js'); ?>"></script>
    </head>
    <body>

        <table width="50%" border="0" align="center">
            <tr>
                <td colspan="8" class="trheader">Laporan Data Penduduk</td>
            </tr>

            <tr>
                <td colspan="8" bordercolor="#666666" class="trheader">Kategori : Per Nomor Induk Kependudukan</td>
            </tr>
            <tr>
                <td colspan="2" bordercolor="#666666" class="cari">&nbsp;</td>
                <td bordercolor="#666666" class="cari">&nbsp;</td>
                <td colspan="10" bordercolor="#666666" class="cari">&nbsp;</td>
            </tr>
            <form action="<?php echo base_url('penduduk/cari_nik'); ?>" method="post" enctype="multipart/form-data">
                <tr>            
                    <td colspan="14" bordercolor="#666666" class="cari">Cari NIK :
                        <input type="text" name="nik" id="nik" class="textinput" placeholder="NIK" />       
                        <input type="submit" name="cari" id="cari" value="Cari" class="btn btn-large"/></td>
                </tr>
            </form>
            <tr>
                <td colspan="14" class="jeda">&nbsp;</td>
            </tr>
            <?php
                if (isset($penduduk)) {
                    foreach ($penduduk->result() as $data_penduduk) {
                        echo '<tr>';                
                        echo '<td width="11%" bordercolor="#666666"><div align="center"></div></td>';
                        echo '<td width="19%" bordercolor="#666666" colspan="5" class="tampilcari">NIK : ' . $data_penduduk->nik . '</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">Nama</td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666" colspan="3">' . $data_penduduk->nama . '</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">Tempat/Tgl Lahir</td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666" colspan="3">' . $data_penduduk->tempat_lahir . ', ' . $this->tanggal->tanggal_indonesia($data_penduduk->tanggal_lahir) . '</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">Jenis Kelamin</td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666">' . $data_penduduk->jenis_kelamin . '</td>';
                        echo '<td bordercolor="#666666">Gol.Darah</td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666">' . $data_penduduk->gol_darah . '</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">Alamat</td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666">' . $data_penduduk->dusun . '</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666"><div align="right">RT / RW</div></td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666">' . $data_penduduk->rt . ' / ' . $data_penduduk->rw . '</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666"><div align="right">Kel. / Desa</div></td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666">' . $data_penduduk->desa . '</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666"><div align="right">Kecamatan</div></td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666">' . $data_penduduk->kecamatan . '</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">Agama</td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666">' . $data_penduduk->agama . '</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">Status Perkawinan</td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666">' . $data_penduduk->status_kawin . '</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">Pekerjaan</td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666">' . $data_penduduk->pekerjaan . '</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '</tr>';
                        
                        echo '<tr>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">Kewarganegaraan</td>';
                        echo '<td bordercolor="#666666">:</td>';
                        echo '<td bordercolor="#666666">' . $data_penduduk->kewarganegaraan . '</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<td bordercolor="#666666">&nbsp;</td>';
                        echo '<tr><td colspan="14" class="jeda">&nbsp;</td></tr>';
                        echo '</tr>';
                    }
                }
                ?>
                
        </table>

    </body>
</html>
